# num = 1
# result = 0
# while num <= 100:
#     result += num
#     num += 1
# print(f'result={result}')
# result = 0
# for i in range(1,101):
#     result += i
# # print(f'求和{result}')
# result = 0
# num = 2
# while num <= 100:
#     result += num
#     num += 2
# print(f'result{result}')

result = 0
for i in range(1,101):
    if i % 2 != 0:
        result += i
print(f'result={result}')


